package com.itcast.StringBuilder.Demo01;

/*
StringBuilder判断字符串是否对称
*/
public class Test3 {
    public static void main(String[] args) {
        System.out.println(isMirror("aba"));
        System.out.println(isMirror("abac"));
    }
    public static boolean isMirror(String str){
        StringBuilder sb=new StringBuilder();
        return sb.append(str).reverse().toString().equals(str);
    }
}
